<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title> 心仪物品查询 - WishLists - LooPo-乐铺 </title>
<?php include VIEWS.'header.html'?>

<style type="text/css">
#list {
    text-align: center;
}

.tt{
    width: 98%;
    padding: 0;
}

.tt td{
    border-bottom: 1px dotted #CCCCCC;
    font-size: 12px;
}

.ti {
    line-height: 150%;
}
</style>

</head>

<body>

<?php include VIEWS.'topbar.html'?>

<div id="content">

    <?php include VIEWS.'leftnav.html'?>

    <div id="right">

        <h1>心仪物品查询(WishList)</h1>

        <p class="px12">朋友过生日，送什么礼物好呢？来这里搜索一下吧，说不定乐铺就有他中意的东西哦！</p>

        <hr size="1" />

        <center>
        <form action="" method="get">
        <b class="px12">输入朋友的名字或者 Email 地址</b>：<input value="<?php echo $search?>" type="text" name="s" value="" size="20" /> &nbsp; <input type="submit" class="bluebtn" value="看看有没有他中意的物品" accesskey="s" />
        </form>
        </center>
        <hr size="1" />

        <?php if ($list):?>
        <div id="list">
            <?php echo round_table('98%', '3366CC', 'white', 3, 3, 'top')?>
            <table class="tt" cellspacing="0">
            <tr class="ti" style="font-weight:bold;background-color:#3366CC;color:#FFF"><td>用户名</td><td>Email</td><td>物品名称</td><td>价格</td><td>更新日期</td></tr>
            <?php foreach ($list as $v):?>
            <tr class="ti">
            <td><?php echo $v['username']?></td>
            <td><?php echo str_replace('@', '(a)', $v['email'])?></td>
            <td><a href="/items/<?php echo $v['id']?>?wish=<?php echo md5($v['uid'])?>"><?php echo $v['name']?></td>
            <td>&yen;<?php echo $v['price1']?></td>
            <td><?php echo date('Y-m-d', $v['updated'])?></td>
            </tr>
            <?php endforeach?>
            </table>
        </div>
        <?php else:?>
        <?php if($search):?><div style="width:96%" class="errbox roundNormal">&nbsp;&nbsp;&nbsp;真可惜，您的朋友没有设置过他的心仪物品。为什么不来设置一下<a href="/myWishList.php" class="white">自己的心仪物品</a>呢！</div><?php endif?>
        <br />
        <h3>使用说明</h3>
        <ol class="px12 l18">
        <li>在上面的搜索框输入朋友的名字、常用 email 或者物品的名称；</li>
        <li>在出来的列表中点击物品名称，进入物品查看页面；</li>
        <li>放入购物车，直接去结帐吧，系统会自动填入收货人的地址；</li>
        <li>有疑问？请<a href="/aboutus#contactus">联系我们</a>。</li>
        </ol>

        <br />
        <p class="px12">想创建您自己的心仪物品列表吗？赶快到“<a href="/myWishList.php">我的心仪物品</a>”中设置吧！</p>
        <p class="px12">还可以把心仪物品列表<a href="/myWishList.php">放到您的网站或者博客</a>上，让更多的人看到，你就等着坐收礼品吧，嘿嘿！</p>
        <?php endif?>

        <?php if($page['next']):?><div style="text-align:right;margin:2em"><a class="px12" tabindex="3" href=<?php echo $page['url']?>p=<?php echo $page['next']?>>下面还有更多</a></div><?php endif?>

    </div>
</div>

<?php include VIEWS.'copyright.html'?>

</body>
</html>
